<?php echo link_to('жагсаалт', 'player/index', array('class'=>'title'))?> 
<span class="separator"> | </span>
<?php echo link_to('шинээр нэмэх', 'player/new', array('class'=>'title'))?>
<br clear="all">
<br clear="all">

<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('player/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          <?php echo $form->renderHiddenFields(false) ?>
          &nbsp;<a href="<?php echo url_for('player/index') ?>">Back to list</a>
          <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'player/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value="Save" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['number']->renderLabel() ?></th>
        <td>
          <?php echo $form['number']->renderError() ?>
          <?php echo $form['number'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['first_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['first_name']->renderError() ?>
          <?php echo $form['first_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['last_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['last_name']->renderError() ?>
          <?php echo $form['last_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['nick']->renderLabel() ?></th>
        <td>
          <?php echo $form['nick']->renderError() ?>
          <?php echo $form['nick'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['about']->renderLabel() ?></th>
        <td>
          <?php echo $form['about']->renderError() ?>
          <?php echo $form['about'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['position_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['position_id']->renderError() ?>
          <?php echo $form['position_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['def_img']->renderLabel() ?></th>
        <td>
          <?php echo $form['def_img']->renderError() ?>
          <?php echo $form['def_img'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['team_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['team_id']->renderError() ?>
          <?php echo $form['team_id'] ?>
        </td>
      </tr>
      <tr>
        <th colspan="2">&nbsp;</th>
      </tr>
      <tr>
        <th colspan="2">Нэмэлт мэдээлэл</th>
      </tr>
      <tr>
        <th><?php echo $form['number']->renderLabel() ?></th>
        <td>
          <?php echo $form['number']->renderError() ?>
          <?php echo $form['number'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['height']->renderLabel() ?></th>
        <td>
          <?php echo $form['height']->renderError() ?>
          <?php echo $form['height'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['weight']->renderLabel() ?></th>
        <td>
          <?php echo $form['weight']->renderError() ?>
          <?php echo $form['weight'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['education']->renderLabel() ?></th>
        <td>
          <?php echo $form['education']->renderError() ?>
          <?php echo $form['education'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['experience']->renderLabel() ?></th>
        <td>
          <?php echo $form['experience']->renderError() ?>
          <?php echo $form['experience'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['birthday']->renderLabel() ?></th>
        <td>
          <?php echo $form['birthday']->renderError() ?>
          <?php echo $form['birthday'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['birth_place']->renderLabel() ?></th>
        <td>
          <?php echo $form['birth_place']->renderError() ?>
          <?php echo $form['birth_place'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
